dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
6138e86
)
Merge "Use generalizeSQL for DBPerformance log entries"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Thu, 18 Dec 2014 23:34:45 +0000
(23:34 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Thu, 18 Dec 2014 23:34:45 +0000
(23:34 +0000)
includes/db/Database.php
patch
|
blob
|
history
diff --git
a/includes/db/Database.php
b/includes/db/Database.php
index
6d27d86
..
33c5cfb
100644
(file)
--- a/
includes/db/Database.php
+++ b/
includes/db/Database.php
@@
-1205,7
+1205,8
@@
abstract class DatabaseBase implements IDatabase {
$n = $this->affectedRows();
if ( $isWriteQuery && $n > self::LOG_WRITE_THRESHOLD && PHP_SAPI !== 'cli' ) {
wfDebugLog( 'DBPerformance',
- "Query affected $n rows:\n$sql\n" . wfBacktrace( true ) );
+ "Query affected $n rows:\n" .
+ DatabaseBase::generalizeSQL( $sql ) . "\n" . wfBacktrace( true ) );
}
}